package cn.bone.clound.service.b.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/11/3.
 */
@RestController
public class AddController {

    private Logger logger = LoggerFactory.getLogger(AddController.class);

    @RequestMapping("/add")
    public Integer add(Integer a,Integer b){

        logger.info("add in service B");
        return a + b;
    }

    @RequestMapping("/str")
    public String str(){
        return "ok";
    }
}
